package com.cskaoyan.controller.wx.footprint;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.wx.foorprint.bo.WxFootDeleteBo;
import com.cskaoyan.bean.wx.foorprint.bo.WxFootprintListBo;
import com.cskaoyan.bean.wx.foorprint.vo.WxFootprintVo;
import com.cskaoyan.service.wx.WxFootprintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project-two
 * @description:
 * @author: YuHui
 * @create: 2021-08-15 16:44
 **/
@RestController
@RequestMapping("wx/footprint")
public class WxFootprintController {
    @Autowired
    WxFootprintService wxFootprintService;

    /**
     * 足迹刷新
     * @param wxFootprintListBo
     * @return
     */
    @RequestMapping("list")
    public BaseRespVo list(WxFootprintListBo wxFootprintListBo){
        WxFootprintVo wxFootprintVo = wxFootprintService.list(wxFootprintListBo);
        return BaseRespVo.ok(wxFootprintVo);
    }

    /**
     * 足迹删除
     */
    @RequestMapping("delete")
    public BaseRespVo delete(@RequestBody WxFootDeleteBo wxFootDeleteBo){
        wxFootprintService.delete(wxFootDeleteBo);
        return BaseRespVo.ok();
    }

}
